/*
 * stack.c
 *
 *  Created on: 02/11/2010
 *      Author: Rafael
 *
 *  Description: test routines for the stack container
 *
 */

#include <stdio.h>
#include <stdlib.h>
#include "../DataCarriers/stack.h"


int general()
{
	stack s = s_create();

	s_push(&s, 1);
	s_push(&s, 2);
	s_push(&s, 3);
	s_push(&s, 4);
	s_push(&s, 5);
	s_push(&s, 6);

	printf("push ok\n");

	while(!s_empty(&s))
		printf("pop: %d\n", s_pop(&s));


	return 1;
}

int main(int argc, char** argv)
{
	general();
	return 0;
}
